package com.robot.mannge.auth.controller;

import com.robot.mannge.auth.domain.param.LoginParam;
import com.robot.mannge.auth.domain.vo.SysUserVO;
import com.robot.mannge.auth.service.SysUserService;
import com.robot.mannge.common.result.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Author: Smile
 * @Date: 2024/01/29/16:41
 * @Description:
 */
@RestController
@RequestMapping("/api/user")
public class SysUserController {

    @Resource
    private SysUserService sysUserService;

    /**
     * 根据用户名查询信息
     * @return
     */
    @GetMapping("/findUserName")
    public SysUserVO findUserByUserName(String username){
        return sysUserService.findUserByUserName(username);
    }

}
